const path = require('path')
module.exports = {
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: [
                path.join(__dirname, './src/assets/style/mixins.less'),
                path.join(__dirname, './src/assets/style/variables.less')

            ]
        }
    }
}
chainWebpack: config => {
    // 图片加载
    config.module
        .rule('images')
        .use('url-loader')
        .loader('url-loader')
        .tap(options => Object.assign(options, { limit: 10000 }))

    // 开启IP域名访问
    config.devServer.disableHostCheck(true)
}